<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class zhuayi</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class zhuayi</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|													<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">index.php     Zhuayi 主框架文件</p>
	<ul class="tags">
				<li><span class="field">author:</span> zhuayi</li>
				<li><span class="field">copyright:</span> (C) 2005 - 2010  Zhuayi</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_class---zhuayi.class.php.html">/class/zhuayi.class.php</a> (line <span class="field">12</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../default/db.html">db</a></td>
					<td>
											index.php     Zhuayi 框架DB抽象类
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../default/help_action.html">help_action</a></td>
					<td>
											index.php     Zhuayi 主框架文件
										</td>
				</tr>
							</table>
		</div>
	</div>



	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																										
				<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#_includes" title="details" class="method-name">_includes</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$error</span> = <span class="var-default">'系统错误！'</span>])
									</div>
														
				<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#_load_class" title="details" class="method-name">_load_class</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$class_name</span>)
									</div>
																		
				<div class="method-definition">
											<span class="method-result">zhuayi</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#app" title="details" class="method-name">app</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#cache" title="details" class="method-name">cache</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$timeout</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$object</span>, <span class="var-type">find</span>&nbsp;<span class="var-name">$cache_var</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">'data'</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#db" title="details" class="method-name">db</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#load_class" title="details" class="method-name">load_class</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>, [<span class="var-type">bool</span>&nbsp;<span class="var-name">$construct</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#load_config" title="details" class="method-name">load_config</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$config</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#load_modle" title="details" class="method-name">load_modle</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$modle</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fun</span>, <span class="var-type">final</span>&nbsp;<span class="var-name">$array</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#load_tpl" title="details" class="method-name">load_tpl</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#routing" title="details" class="method-name">routing</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#test" title="details" class="method-name">test</a>
											(<span class="var-type">final</span>&nbsp;<span class="var-name">$array</span>)
									</div>
																											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method_includes" id="_includes"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static _includes</span> (line <span class="line-number">166</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">加载文件，失败返回错误</p>
	
	<div class="method-signature">
		static <span class="method-result">void</span>
		<span class="method-name">
			_includes
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$error</span> = <span class="var-default">'系统错误！'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span><span class="var-description">: 文件路径</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$error</span><span class="var-description">: 错误信息</span>			</li>
				</ul>
		
			
	</div>
<a name="method_load_class" id="_load_class"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static _load_class</span> (line <span class="line-number">111</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">动态加载类，一般适用在直接new，如new cookie，或者cookie::set_cookie</p>
	
	<div class="method-signature">
		static <span class="method-result">void</span>
		<span class="method-name">
			_load_class
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$class_name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$class_name</span><span class="var-description">: 类文件</span>			</li>
				</ul>
		
			
	</div>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">17</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">构造函数</p>
	
	<div class="method-signature">
		<span class="method-result">zhuayi</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../default/db.html#method__construct">db::__construct()</a>
								: 构造函数
							</li>
					<li>
				<a href="../default/help_action.html#method__construct">help_action::__construct()</a>
							</li>
				</ul>
	</div>
<a name="methodapp" id="app"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">app</span> (line <span class="line-number">54</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">映射模型</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			app
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcache" id="cache"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">cache</span> (line <span class="line-number">200</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">读取缓存，不存在则写入,一般用在缓存数据上</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			cache
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$timeout</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$object</span>, <span class="var-type">find</span>&nbsp;<span class="var-name">$cache_var</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">'data'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$timeout</span><span class="var-description">: 缓存过期时间</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$object</span><span class="var-description">: 缓存对象</span>			</li>
					<li>
				<span class="var-type">find</span>
				<span class="var-name">$cache_var</span><span class="var-description">: 缓存内容,可以是字符串或数组，数组将会被转为json数据存储</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$path</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddb" id="db"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">db</span> (line <span class="line-number">251</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">数据工厂</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			db
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodload_class" id="load_class"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">load_class</span> (line <span class="line-number">135</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">加载类带实例化，和初始配置</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			load_class
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>, [<span class="var-type">bool</span>&nbsp;<span class="var-name">$construct</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$class</span><span class="var-description">: 类名</span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$construct</span><span class="var-description">: 是否构造函数有参数</span>			</li>
				</ul>
		
			
	</div>
<a name="methodload_config" id="load_config"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">load_config</span> (line <span class="line-number">219</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">载入配置文件</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			load_config
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$config</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$config</span><span class="var-description">: 配置文件名</span>			</li>
				</ul>
		
			
	</div>
<a name="methodload_modle" id="load_modle"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">load_modle</span> (line <span class="line-number">72</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">载入模块方法</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			load_modle
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$modle</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$fun</span>, <span class="var-type">final</span>&nbsp;<span class="var-name">$array</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$modle</span><span class="var-description">: 模块名称</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fun</span><span class="var-description">: 模块方法</span>			</li>
					<li>
				<span class="var-type">final</span>
				<span class="var-name">$array</span><span class="var-description">: 该模块对应的参数</span>			</li>
				</ul>
		
			
	</div>
<a name="methodload_tpl" id="load_tpl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">load_tpl</span> (line <span class="line-number">186</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">载入模版</p>
<p class="description"><p>模型和方法以“_”连接,如$this-&gt;load_tpl('index_index') 载入的就是index/template/index_index.html模版</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			load_tpl
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$filename</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$filename</span><span class="var-description">: 模版名称</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrouting" id="routing"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">routing</span> (line <span class="line-number">26</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			routing
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodtest" id="test"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">test</span> (line <span class="line-number">263</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">打印测试</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			test
		</span>
					(<span class="var-type">final</span>&nbsp;<span class="var-name">$array</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">final</span>
				<span class="var-name">$array</span><span class="var-description">: 可以是数组也可以是字符串</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Mon, 11 Apr 2011 09:23:49 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>